import request from '@/utils/request'

export function billList(data) {
  return request({
    url: '/admin.php?s=Admin.RentBill.BillList',
    method: 'post',
    data,
  })
}

export function addBill(data) {
  return request({
    url: '/admin.php?s=Admin.RentBill.AddBill',
    method: 'post',
    data,
  })
}

export function editBill(data) {
  return request({
    url: '/admin.php?s=Admin.RentBill.ModifyBillInfo',
    method: 'post',
    data,
  })
}

export function addMoreBill(data) {
  return request({
    url: '/admin.php?s=Admin.RentBill.BatchAddBill',
    method: 'post',
    data,
  })
}

export function deleteBill(data) {
  return request({
    url: '/admin.php?s=Admin.RentBill.DeleteBill',
    method: 'post',
    data,
  })
}

export function setPayed(data) {
  return request({
    url: '/admin.php?s=Admin.RentBill.SetBillPayed',
    method: 'post',
    data,
  })
}

export function getIncomeRoomBill(data) {
  return request({
    url: '/admin.php?s=Admin.RentBill.BillTotalListAtRoom',
    method: 'post',
    data,
  })
}
